package com.zk.service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zk.entity.SysPermission;
import com.zk.mapper.SysPermissionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zk
 * @since 2017-02-23
 */
@Service
public class SysPermissionService extends ServiceImpl<SysPermissionMapper, SysPermission> {

    /**
     * 根据userId获取权限信息
     * @param userId
     * @return
     */
    public List<SysPermission> selectByUserId(String userId){
        return baseMapper.selectByUserId(userId);
    }
}
